#include<stdio.h>
#include<iostream>
#include<windows.h>
struct node{
	int num;
	struct node *next=NULL;
}; 
int a,b;
struct node *p,*head;
using namespace std;
int main(){
	cin>>a;
	struct node list[a];
	p=&list[0];
	for(int i=0;i<a;i++){
		list[i].num=i+1;
		list[i].next=&list[i+1];
	}
	list[a-1].next=&list[0];
	p=&list[0];
	do{
		cout<<p->num<<"-->";
		p=p->next;
		Sleep(100);
	}while(p!=NULL);
	return 0;
}

